package coc.example.script.crawler.坪山通;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import coc.core.Crawler;
import coc.core.CrawlerConfig;
import coc.example.script.crawler.BaseCrawlerExecutor;

@Component("crawlerExecutor")
public class PstCrawlerExecutor extends BaseCrawlerExecutor {
	@Resource
	private PstService pstService;

	@Override
	protected Crawler genCrawler(CrawlerConfig crawlerConfig) {
		PstCrawler crawler = new PstCrawler(crawlerConfig);
		crawler.setPstService(pstService);
		return crawler;
	}
}
